{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e8.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 10:57:14
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "charity field2.dta"
{txt}
{com}. 
. set seed  358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)  , vce(cluster klassnummer)
{res}{txt}(1 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log pseudolikelihood = {res:-340.91921}  
Iteration 1:{space 3}log pseudolikelihood = {res:-340.91921}  

Structural equation model{col 49}Number of obs{col 67}= {res}       214
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log pseudolikelihood{col 20}= {res}-340.91921

{txt}{ralign 78:(Std. Err. adjusted for {res:12} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3167264{col 26}{space 2} .0845771{col 37}{space 1}    3.74{col 46}{space 3}0.000{col 54}{space 4} .1509583{col 67}{space 3} .4824946
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.1261928{col 26}{space 2} .0448681{col 37}{space 1}   -2.81{col 46}{space 3}0.005{col 54}{space 4}-.2141327{col 67}{space 3}-.0382529
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1845577{col 26}{space 2} .0535684{col 37}{space 1}    3.45{col 46}{space 3}0.001{col 54}{space 4} .0795655{col 67}{space 3} .2895498
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .569363{col 26}{space 2} .0821998{col 37}{space 1}    6.93{col 46}{space 3}0.000{col 54}{space 4} .4082544{col 67}{space 3} .7304716
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2733575{col 26}{space 2} .0509739{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} .1734504{col 67}{space 3} .3732645
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2448849{col 26}{space 2} .0760482{col 37}{space 1}    3.22{col 46}{space 3}0.001{col 54}{space 4} .0958331{col 67}{space 3} .3939366
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3966127{col 26}{space 2} .0717306{col 37}{space 1}    5.53{col 46}{space 3}0.000{col 54}{space 4} .2560233{col 67}{space 3} .5372022
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2}  .054936{col 26}{space 2} .0094745{col 54}{space 4} .0391791{col 67}{space 3} .0770298
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0908484{col 26}{space 2} .0101843{col 54}{space 4} .0729283{col 67}{space 3} .1131719
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       214{col 27}        .{col 38}-340.9192{col 49}     9{col 58} 699.8384{col 69} 730.1322
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:12} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3167264{col 26}{space 2} .0845771{col 37}{space 1}    3.74{col 46}{space 3}0.000{col 54}{space 4} .1509583{col 67}{space 3} .4824946
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.1261928{col 26}{space 2} .0448681{col 37}{space 1}   -2.81{col 46}{space 3}0.005{col 54}{space 4}-.2141327{col 67}{space 3}-.0382529
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1845577{col 26}{space 2} .0535684{col 37}{space 1}    3.45{col 46}{space 3}0.001{col 54}{space 4} .0795655{col 67}{space 3} .2895498
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2733575{col 26}{space 2} .0509739{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} .1734504{col 67}{space 3} .3732645
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2448849{col 26}{space 2} .0760482{col 37}{space 1}    3.22{col 46}{space 3}0.001{col 54}{space 4} .0958331{col 67}{space 3} .3939366
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:12} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0865795{col 26}{space 2} .0240025{col 37}{space 1}    3.61{col 46}{space 3}0.000{col 54}{space 4} .0395355{col 67}{space 3} .1336236
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0775615{col 26}{space 2} .0317451{col 37}{space 1}    2.44{col 46}{space 3}0.015{col 54}{space 4} .0153423{col 67}{space 3} .1397807
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:12} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3167264{col 26}{space 2} .0845771{col 37}{space 1}    3.74{col 46}{space 3}0.000{col 54}{space 4} .1509583{col 67}{space 3} .4824946
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0396133{col 26}{space 2} .0427204{col 37}{space 1}   -0.93{col 46}{space 3}0.354{col 54}{space 4}-.1233438{col 67}{space 3} .0441172
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2621192{col 26}{space 2} .0686345{col 37}{space 1}    3.82{col 46}{space 3}0.000{col 54}{space 4} .1275981{col 67}{space 3} .3966403
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2733575{col 26}{space 2} .0509739{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} .1734504{col 67}{space 3} .3732645
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2448849{col 26}{space 2} .0760482{col 37}{space 1}    3.22{col 46}{space 3}0.001{col 54}{space 4} .0958331{col 67}{space 3} .3939366
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       214
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0775615{col 26}{space 2} .0244787{col 37}{space 1}    3.17{col 46}{space 3}0.002{col 54}{space 4} .0295842{col 67}{space 3} .1255389
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .2621192{col 26}{space 2}  .046411{col 37}{space 1}    5.65{col 46}{space 3}0.000{col 54}{space 4} .1711553{col 67}{space 3} .3530831
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       214
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .07756151{col 27}{space 2} .0003084{col 38}{space 2} .02447869{col 51}{space 2} .0351403{col 63}{space 1} .1298108{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0357824{col 63}{space 1} .1325602{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .26211917{col 27}{space 2} .0017944{col 38}{space 2} .04641101{col 51}{space 2} .1783959{col 63}{space 1} .3602055{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .1762356{col 63}{space 1} .3556423{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       214
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0865795{col 26}{space 2} .0208705{col 37}{space 1}    4.15{col 46}{space 3}0.000{col 54}{space 4} .0456741{col 67}{space 3} .1274849
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}-.0396133{col 26}{space 2} .0369859{col 37}{space 1}   -1.07{col 46}{space 3}0.284{col 54}{space 4}-.1121043{col 67}{space 3} .0328778
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       214
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .08657953{col 27}{space 2}-.0007602{col 38}{space 2} .02087048{col 51}{space 2} .0480668{col 63}{space 1} .1277154{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0503464{col 63}{space 1} .1334312{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}-.03961327{col 27}{space 2}-.0006822{col 38}{space 2} .03698592{col 51}{space 2}-.1151519{col 63}{space 1} .0305504{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} -.116098{col 63}{space 1} .0287139{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       211
                                                {txt}F(3, 207)         =  {res}     2.57
                                                {txt}Prob > F          = {res}    0.0550
                                                {txt}R-squared         = {res}    0.0359
                                                {txt}Root MSE          =    {res} .49321

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2}-.1714928{col 26}{space 2} .0690218{col 37}{space 1}   -2.48{col 46}{space 3}0.014{col 54}{space 4}-.3075686{col 67}{space 3}-.0354171
{txt}{space 4}interest {c |}{col 14}{res}{space 2} .0489473{col 26}{space 2} .1129281{col 37}{space 1}    0.43{col 46}{space 3}0.665{col 54}{space 4}-.1736894{col 67}{space 3} .2715839
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.1966252{col 26}{space 2}  .121387{col 37}{space 1}   -1.62{col 46}{space 3}0.107{col 54}{space 4}-.4359384{col 67}{space 3} .0426881
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6684631{col 26}{space 2} .1216707{col 37}{space 1}    5.49{col 46}{space 3}0.000{col 54}{space 4} .4285905{col 67}{space 3} .9083357
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e8.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 10:59:06
{txt}{.-}
{smcl}
{txt}{sf}{ul off}